using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
namespace MVC.Controllers
{
    // 特性路由
    // [Route("/")]
    // [Route("[controller]/[action]")]
    public class TestController : Controller
    {
        private readonly ILogger<TestController> _logger;
        public TestController(ILogger<TestController> logger)
        {
            _logger = logger;
        }
        // [Route("/")]
        [Route("/[controller]")]
        public IActionResult Index()
        {
            return View();
        }
    }
}